package agentInterface;

import java.io.Serializable;

import model.Position;
import model.Product;
import model.Stage;
import agents.MachineAgent;

public class MachineDetails implements Serializable {
	private static final long serialVersionUID = 1882462288959395405L;
	
	private Stage type;
	private String name;
	private Position position;
	private Product product;
	private boolean waiting;

	public MachineDetails(MachineAgent mac) {
		this.type = mac.getType();
		this.name = mac.getLocalName();
		this.position = mac.getPosition();
		this.product = mac.getCurrentProduct();
		this.waiting = mac.isWaiting();
	}

	public String getName() {
		return name;
	}
	public Position getPosition() {
		return position;
	}
	public Product getProduct() {
		return product;
	}

	public Stage getType() {
		return type;
	}
	
	public boolean isWaiting() {
		return waiting;
	}
}
